#!/usr/bin/env python
# -*- coding: utf-8 -*-

# package  : Inventorius - PyGTK Custom Inventory System
# version  : $Id$
# copyright: Copyright (c) 2010 Bertrand Kintanar <bertrand.kintanar@gmail.com>
# license  : http://opensource.org/licenses/gpl-3.0.html
# url      : http://c0dejunk1e.tumblr.com/
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# If you find any bugs or have any suggestions email: bertrand.kintanar@gmail.com
#
# Inventorius needs the following to function properly:
#   python >= 2.5.1, gtk >= 2.14.1, pygtk >= 2.12.2, 
#   sqlite >= 2.3.5, sqlalchemy >= 0.5.0

import ConfigParser

config = ConfigParser.ConfigParser()
config.read("config.ini")

__version__ = "$Rev$"
# $HeadURL$

__author__     = "Bertrand Kintanar <bertrand.kintanar@gmail.com>"
__appversion__ = "0.3"
__date__       = "Date: 2008/09/17"
__copyright__  = "Copyright (c) 2010 Bertrand Kintanar"
__license__    = "GPL3"

# database connection settings
database = config.get("db_settings", "database")
dbname   = config.get("db_settings", "dbname")
dbhost   = config.get("db_settings", "dbhost")
username = config.get("db_settings", "username")
password = config.get("db_settings", "password")

# application settings
DEBUG       = config.getboolean("app_settings", "DEBUG")
LOGIN       = config.getboolean("app_settings", "LOGIN")
PREFIX      = config.get("app_settings", "PREFIX")
APP_NAME    = config.get("app_settings", "APP_NAME")